/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package converter;

import javax.swing.JOptionPane;

/**
 *
 * @author Owner
 */
public class pantalla extends javax.swing.JFrame {

    /**
     * Creates new form pantalla
     */
    presultado resultado = new presultado();
    String textot;
    
    
    
    matriz1 mat = new matriz1();
    
    public pantalla() {
        
        initComponents();
    }

    public void printer(){

        
}
    
    
    
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jButton14 = new javax.swing.JButton();
        jButton15 = new javax.swing.JButton();
        jButton16 = new javax.swing.JButton();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jRadioButton3 = new javax.swing.JRadioButton();
        jRadioButton4 = new javax.swing.JRadioButton();
        jRadioButton5 = new javax.swing.JRadioButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jButton13 = new javax.swing.JButton();
        jButton17 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jButton1.setText("C");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("D");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton3.setText("E");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton4.setText("G");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jButton5.setText("A");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton6.setText("B");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jButton7.setText("C#");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        jButton8.setText("D#");
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        jButton9.setText("F");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        jButton10.setText("F#");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        jButton11.setText("G#");
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jButton12.setText("A#");
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        jTextArea1.setEditable(false);
        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        jLabel1.setText("NOTAS INGRESADAS:");

        jButton14.setText("TRANSFORMAR");
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });

        jButton15.setText("Borrar");
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });

        jButton16.setText("SALIR");
        jButton16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton16ActionPerformed(evt);
            }
        });

        buttonGroup1.add(jRadioButton1);
        jRadioButton1.setText("1");
        jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton1ActionPerformed(evt);
            }
        });

        buttonGroup1.add(jRadioButton2);
        jRadioButton2.setText("2");

        buttonGroup1.add(jRadioButton3);
        jRadioButton3.setText("3");

        buttonGroup1.add(jRadioButton4);
        jRadioButton4.setText("4");

        buttonGroup1.add(jRadioButton5);
        jRadioButton5.setText("5");

        jLabel4.setText("Octavas:");

        jButton13.setText("Compas |");
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        jButton17.setText("Seccion | |");
        jButton17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton17ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(18, 18, 18)
                        .addComponent(jButton16)
                        .addContainerGap())))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jButton8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton7, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton10, javax.swing.GroupLayout.Alignment.LEADING))
                        .addGap(32, 32, 32)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jButton13)
                                    .addGap(22, 22, 22)
                                    .addComponent(jButton15)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton14)
                                    .addGap(52, 210, Short.MAX_VALUE))
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 475, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(21, 21, Short.MAX_VALUE)))
                            .addComponent(jButton17)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(130, 130, 130)
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jRadioButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jRadioButton2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jRadioButton3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jRadioButton4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jRadioButton5)))
                .addGap(0, 0, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(6, 6, 6)
                .addComponent(jLabel3)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jButton1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButton2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButton3)
                                .addGap(11, 11, 11)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jButton9)
                                    .addComponent(jButton10)))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jButton7)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButton8)))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jButton4)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jButton5))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jButton11)
                                        .addGap(11, 11, 11)
                                        .addComponent(jButton12)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton6))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jButton14)
                                    .addComponent(jButton15)
                                    .addComponent(jButton13))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton17)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jRadioButton1)
                            .addComponent(jRadioButton2)
                            .addComponent(jRadioButton3)
                            .addComponent(jRadioButton4)
                            .addComponent(jRadioButton5)
                            .addComponent(jLabel4))
                        .addGap(6, 6, 6)))
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButton16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(30, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"D1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"D2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"D3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"D4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"D5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"C1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"C2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"C3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"C4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"C5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
        //jTextArea1.setText(jTextArea1.getText()+" "+"C1");
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"E1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"E2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"E3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"E4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"E5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"F1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"F2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"F3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"F4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"F5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"G1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"G2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"G3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"G4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"G5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA");
        }
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"A1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"A2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"A3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"A4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"A5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA");
        }
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"B1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"B2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"B3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"B4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"B5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"c1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"c2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"c3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"c4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"c5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton7ActionPerformed

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"d1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"d2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"d3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"d4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"d5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton8ActionPerformed

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"f1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"f2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"f3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"f4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"f5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton10ActionPerformed

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"g1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"g2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"g3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"g4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"g5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton11ActionPerformed

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        // TODO add your handling code here:
        if(jRadioButton1.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"a1"+" ");
        }
        else if(jRadioButton2.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"a2"+" ");
        }
        else if(jRadioButton3.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"a3"+" ");
        }
        else if(jRadioButton4.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"a4"+" ");
        }
        else if(jRadioButton5.isSelected()){
            jTextArea1.setText(jTextArea1.getText()+"a5"+" ");
        }
        else{
            jLabel3.setText("SELECCIONE OCTAVA ");
        }
    }//GEN-LAST:event_jButton12ActionPerformed

    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton16ActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_jButton16ActionPerformed

    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
        // TODO add your handling code here:
        resultado.borrar();
        resultado.setVisible(true);
        textot = jTextArea1.getText();
        jLabel2.setText(textot);
        
        int max = mat.noba(textot);
        max --;
        
        Tablatura tabs = new Tablatura(max);
        
        System.out.println(textot);
                     
              
        int nota;
        int min = 100;
        int cuerda = 0;
        int traste = 0;
        int var = 0;
        
        mat.obtener(textot, 0, 0);    
        tabs.addResult(0, mat.cuerda, mat.traste);
        
        int trastea = mat.traste;
        
        for(nota = 1; nota < max; nota++){
            
            min = 100;
            
            mat.obtener(textot, nota, 0);
            
            if(mat.cuerda < 6){
            
            for (int op = 0; op <4; op++){
                
                mat.obtener(textot, nota, op);
                
                var = trastea - mat.traste ;
                
                if(Integer.signum(var) == -1){
                    var = var*(-1);
                }
                
                
                if(var < min ){
                    
                    min = var;
                    cuerda = mat.cuerda;
                    traste = mat.traste;
                    
                }
                
            }
            trastea = traste;
            tabs.addResult(nota, cuerda, traste);
            }else{
                
            tabs.addResult(nota, mat.cuerda, mat.traste);    
                
            }
                        
            
            
                    
        }
        
        
        
        
        
        
        tabs.decode();
        
        resultado.fila1 = tabs.row1;
        resultado.fila2 = tabs.row2;
        resultado.fila3 = tabs.row3;
        resultado.fila4 = tabs.row4;
        resultado.fila5 = tabs.row5;
        resultado.fila6 = tabs.row6;
        
        resultado.imprimir();
    }//GEN-LAST:event_jButton14ActionPerformed

    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton15ActionPerformed
        // TODO add your handling code here:
        jTextArea1.setText("");
    }//GEN-LAST:event_jButton15ActionPerformed

    private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jRadioButton1ActionPerformed

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
        // TODO add your handling code here:
        jTextArea1.setText(jTextArea1.getText()+"|"+" ");
    }//GEN-LAST:event_jButton13ActionPerformed

    private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton17ActionPerformed
        // TODO add your handling code here:
        jTextArea1.setText(jTextArea1.getText()+"||"+" ");
    }//GEN-LAST:event_jButton17ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(pantalla.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(pantalla.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(pantalla.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(pantalla.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new pantalla().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JRadioButton jRadioButton3;
    private javax.swing.JRadioButton jRadioButton4;
    private javax.swing.JRadioButton jRadioButton5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration//GEN-END:variables
}
